
const webpack = require('webpack')
const path = require('path')

module.exports = {
  devtool: 'inline-source-map',
  entry: './example/index.js',
  output: {
    path: path.resolve('example'),
    publicPath: '/',
    filename: 'app.js'
  },

  mode: 'development',
  module: {
    rules: [{
      test: /\.js/,
      use: {
        loader: 'babel-loader',
        options: {
          presets: ["@babel/preset-env","@babel/preset-react"]
        }
      },
      exclude: /node_modules/
    }, {
      test: /\.css$/,
      use: ['style-loader','css-loader']     
    }]
  },
}
